-- GENERATED SPELL FOR [Hammerfall Grunt] --


function spell0_2619(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_2619', 15000, 1)
end

function spell1_2619(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2619', 30327, 1)
end

function Sorts_2619(pUnit, Event)
local choix_sorts_2619 = math.random(0, 1)
if choix_sorts_2619 == 0 then
pUnit:RegisterEvent('spell0_2619', 1, 1)
end
if choix_sorts_2619 == 1 then
pUnit:RegisterEvent('spell1_2619', 1, 1)
end
end

function mob2619_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2619', math.random(1500, 3000), 1)
end

function mob2619_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2619_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2619_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2619, 1, 'mob2619_Action')
RegisterUnitEvent(2619, 2, 'mob2619_Leave')
RegisterUnitEvent(2619, 3, 'mob2619_Kill')
RegisterUnitEvent(2619, 4, 'mob2619_Die')
